const http = require('http')
const server = http.createServer()
server.on('request', (req, res) => {
    res.setHeader('Access-Control-Allow-Origin', 'http://127.0.0.1:5500')
    res.end('hello cors')
})
server.listen(3000, () => {
    console.log('server is running at http://127.0.0.1:3000')
})